#include <SFML/Graphics.hpp>

using namespace std;
using namespace sf;

int main()
{
    // Create the main window
    RenderWindow app(VideoMode(800, 600), "SFML window");
    String welcome("Welcome to the amazing MMORPG !");
    welcome.SetPosition(150,100);
    String entrer("Entrer");
    String quitter("Quitter");
    entrer.SetPosition(200,250);
    quitter.SetPosition(500,250);
    Image bgImage;
    bgImage.LoadFromFile("images/bg.jpg");
    Sprite bg;
    bg.SetImage(bgImage);
    // Start the game loop
    while (app.IsOpened())
    {
        // Process events
        Event event;
        while (app.GetEvent(event))
        {
            // Close window : exit
            if (event.Type == Event::Closed)
                app.Close();
        }

        // Clear screen
        app.Clear();
        // Draw the sprite
        app.Draw(bg);
        app.Draw(welcome);
        app.Draw(entrer);
        app.Draw(quitter);

        // Update the window
        app.Display();
    }

    return EXIT_SUCCESS;
}
